﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCS.aspx.cs" Inherits="ConsolidationTool.WebParts.Layouts.CReport.Flash.SCS" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagName="EntitySelector" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/CommonEntitySelector.ascx" %>
<%@ Register TagName="ExportExcel" TagPrefix="RE" Src="~/_controltemplates/ConsolidationTool.WebParts/PublicExportExcel.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<style type="text/css">
    .fs-common-selector{border-collapse:collapse; font-size:12px;}
    .fs-common-selector td,.fs-common-selector th{text-align:left;text-indent:.5em;border:1px solid #ccc}
    .fs-common-selector th{background-color:#F7FBFF}
    
    td.gray,td.gray input{background-color:#E7E7E7; border:0;}
    td.blue,td.blue input{background-color:#E2F3FF; border:0;}
    td.green,td.green input{background-color:#DDF8E4; border:0;}
    td.green_loading,td.green_loading input{background-color:#DDF8E4; border:0;}
    
    .fs-control-done{ color:Green;}
    .fs-control-fail{ color:Blue; font-weight:bold;}
    
    .fs-webpart-container{min-width:850px}
    .fs-webpart-top{margin-bottom:1em}
    .commontable{width:98%;border-collapse:collapse; font-size:12px;}
    .commontable input[type=text],.fs-common-selector input[type=text]{width:95%; text-align:right;}
    .commontable td[identity]{text-align:right;}
    .commontable td{border:1px solid #ccc;min-height:20px;padding:.3em;}
    .fs-bottom-action{text-align:center;width:95%}
    .fs-display-title{min-width:160px;display:inline-block}
    .fs-control-field{ display:none;}
    .fs-control-display{  text-align:right;}
    .die{ display:none;}
</style>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <div class="fs-webpart-top">
        <RE:EntitySelector ID="commonEntitySelector" runat="server" />
    </div>
    
    <br />
    <asp:Button ID="GenerateReport" runat="server" Text="Generate Report" OnClick="GenerateReport_Click" />
    <%--<asp:Button ID="ExportReport" runat="server" Text="Export Report" OnClick="ExportReport_Click" />--%>
    <RE:ExportExcel ID="ExportExcel1" runat="server" />
    <br /><br />
    <table  id="fs_commontable" class="commontable">
    <thead>
        <tr>
            <td>Account code</td>
            <td>Name</td>
            <td>Unit</td>
            <td>&nbsp;</td>
            <td><asp:Label ID="Title_HRM1" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM2" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM3" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM4" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM5" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM6" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM7" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM8" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM9" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM10" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM11" runat="server" Text=""></asp:Label></td>
            <td><asp:Label ID="Title_HRM12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
            <td>Actual</td>
        </tr></thead>
        <tr>
            <td>SV01030100</td>
            <td><span class="fs-display-title" style="font-weight: 700">Service Sales</span></td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR01_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR01_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01030101</td>
            <td>RMGT Sales</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR02_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR02_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01030102</td>
            <td>Group R&D recharge</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR03_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR03_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01030103</td>
            <td>Other</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR04_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR04_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td></td>
            <td colspan="15"></td>
        </tr>
        <tr>
            <td>SV01040100</td>
            <td><span class="fs-display-title" style="font-weight: 700">Commission Sales</span></td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR05_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR05_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td></td>
            <td colspan="15"></td>
        </tr>
        <tr>
            <td>SV01050100</td>
            <td><span class="fs-display-title" style="font-weight: 700">Others</span></td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR06_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR06_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01050101</td>
            <td>Sales of Dsiposal of assets</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR07_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR07_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01050102</td>
            <td>Sales of Scrap</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR08_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR08_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>SV01050103</td>
            <td>Other</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR09_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR09_C12" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td></td>
            <td colspan="15"></td>
        </tr>
        <tr>	 
            <td>SV01060100</td>
            <td>Sales of Steam</td>
            <td>Number</td>
            <td>Month</td>
            <td align="right"><asp:Label ID="Label_HRR10_C01" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C02" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C03" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C04" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C05" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C06" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C07" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C08" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C09" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C10" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C11" runat="server" Text=""></asp:Label></td>
            <td align="right"><asp:Label ID="Label_HRR10_C12" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <script type="text/javascript">
        $(function () {

            $("table.commontable tr td span[id*=Label_]").each(function () {
                var self = $(this); self.text(self.text().commafy());
            });
        })
    </script>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Flash Report - Sales Commission&Service
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
我的应用程序页
</asp:Content>
